# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  before_filter :newproc
  # Pick a unique cookie name to distinguish our session data from others'
  session :session_key => '_SysTISS_session_id'
  #CABEÇALHO
  identificacaoTransacao = {}
  identificacaoTransacao = {:tipoTransacao => "", :sequencialTransacao => 0, :dataRegistroTransacao => Date.new, :horaRegistroTransacao => Time.new}
  
  def newproc
    unless session[:newproc]
      session[:newproc] = Array.new
    end   
  end
end
